<el-menu
        :default-active="activeIndex2"
        class="el-menu-demo"
        mode="horizontal"
        @select="handleSelect"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b">
    <el-menu-item index="1"><a @click="locationfref('/')">首页</a></el-menu-item>
    <el-menu-item index="3"><a @click="locationfref('/channel')">专栏</a></el-menu-item>
    <el-menu-item index="100"><a @click="locationfref('/es')">es搜索</a></el-menu-item>
    <#if user??>
        <el-menu-item index="2" ><a @click="locationfref('/add')">新建内容</a></el-menu-item>
    </#if>
<!--    <#if user??>-->
<!--        <el-menu-item index="4" ><a @click="locationfref('/manager')">文章管理</a></el-menu-item>-->
<!--    </#if>-->
<!--    <#if user??>-->
<!--        <el-menu-item index="6" ><a @click="locationfref('/system')">系统管理</a></el-menu-item>-->
<!--    </#if>-->
    <#if user??>
        <@menuparent>
            <#list results.records as item>
                <el-menu-item index="${item.activeindex}" ><a @click="locationfref('/menumanager/${item.id}')">${item.menuName}</a></el-menu-item>
            </#list>
        </@menuparent>
    </#if>
    <#if user??>
    <el-submenu index="5" style="float: right"><a></a>
        <template slot="title"><a>${user.username}的控制台</a></template>
        <el-menu-item index="2-1" @click="logout">退出登录</el-menu-item>
        <el-menu-item index="2-2"><a  @click="locationfref('/nav')">测试导航</a></el-menu-item>
    </el-submenu>
    <#else>
         <el-menu-item index="5" style="float: right"><a  @click="locationfref('/login')">登录</a></el-menu-item>
    </#if>

</el-menu>
